package wei.xinya.pattern.creational.builder;

import java.util.Map;

public class BuilderTest {
    public static void main(String[] args) {
        MyConfig myConfig = MyConfig.builder().appName("test").logTime(System.currentTimeMillis())
                .key("name").value("张三").key("age").value(24).key("sex").value("男").build();

        Map<String, Object> data = myConfig.getData();
        System.out.println(data.get("name"));
    }
}
